|
Cytosim
PI
Cytoskeleton Simulator
|
Throw an Exception (not a pointer), and catch a reference to an exception. This ensures proper memory managment (coordinated calls of constructor / destructor)
Public Member Functions | |
| Exception () | |
| Creator with empty message. | |
| Exception (const std::string m) | |
| constructor with given message | |
| virtual | ~Exception () |
| Destructor (exceptions should have empty destructors) | |
| const char * | what () const |
| return the message | |
| void | what (const std::string &m) |
| change the message | |
| template<typename A > | |
| Exception (const std::string &s, const A &a) | |
concatenate s and a to build message | |
| template<typename A , typename B > | |
| Exception (const std::string &s, const A &a, const B &b) | |
concatenate s, a and b to build message | |
| template<typename A , typename B , typename C > | |
| Exception (const std::string &s, const A &a, const B &b, const C &c) | |
concatenate s, a, b and c to build message | |
| template<typename A , typename B , typename C , typename D > | |
| Exception (const std::string &s, const A &a, const B &b, const C &c, const D &d) | |
concatenate s, a, b, c and d to build message | |
| Exception & | operator<< (const std::string m) |
append m to message | |
| template<typename T > | |
| Exception & | operator<< (const T &x) |
append x to message | |
Protected Attributes | |
| std::string | msg |
| message associated with the exception | |